import { Component,OnInit } from '@angular/core';
import { Router,ActivatedRoute } from '@angular/router';

@Component({
  selector: 'app-bar',
  templateUrl: './bar.component.html',
  styleUrls: ['./bar.component.css']
})
export class BarComponent implements OnInit {
  constructor(
      private route:Router,
  ) {
  }
  ngOnInit() {
      //进行路由匹配

  }
  // 去到首页
 goIndex(){
   window.location.href='https://mc.lessonplan.cn/home/index';
 }

  //去到推送列表
  goList(){
    window.location.href='https://mc.lessonplan.cn/home/list';
  }
  //去到个人中心
  goPersonal(){
    window.location.href='https://mc.lessonplan.cn/home/personal';
  }
  // 返回上一页
  goPre(){
    window.history.go(-1);
    //进行路由匹配
  }
  // 路由匹配
}

